﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../common/taglibs.jsp" %>    
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>产业实体--项目甲方</title>
    <link href="${contextPath}/acss/cyda.css" rel="stylesheet" />
    <link href="${contextPath}/acss/common.css" rel="stylesheet" />
    <link href="${contextPath}/acss/selectInfo.css" rel="stylesheet" />
    <script src="${contextPath}/js/jquery-1.7.1.min.js"></script>
</head>


 
<body>
	<div class="topfixhead">
   		 <%@include file="header.jsp" %>
    	<div class="fixSearchMenu">       
                <div class="selectType">
                    <div class="hangye" id="Div1">
                        <label><a href="javascript:void(0);">行业</a></label>
                    </div>
                    <div class="diqu" id="Div2">
                        <label><a href="javascript:void(0);">地区</a></label>
                    </div>
                    <div class="zczb" id="Div3">
                        <label><a href="javascript:void(0);">注册资本</a></label>
                    </div>
                    <div class="jsjxx" id="Div4">
                        <a href="javascript:void(0);">计算机信息系统集成资质</a>
                    </div>
                    <input id="icoSearch" class="icoSearch btn_submit" type="submit" value="" />
                    <input id="icoRefresh" class="icoRefresh btn_reset" type="button" value="" />
                    <!--隐藏域 开始-->
                    <div class="hangye_panel">
                        <mytag:industry industry=""></mytag:industry>

                    </div>
                    <div class="diqu_panel">
                        
						<mytag:area area=""></mytag:area>

                    </div>
                    
                     
                    <!--隐藏域结束-->
                </div>
            
     	</div>
    </div>
    
    <div class="container" style="height: auto;">

        <div class="navlevel">
           <span class="firstlevel">产业档案 ></span>
            <span class="nextlevel">项目甲方</span>
        </div>

        <%@include file="../common/entity_left.jsp" %>
        
        <div class="right_html">
        	<form action="${contextPath }/consumer/list.htm" methed="get">
        	
        	<div class="programjf">

	            <div class="selectType">
	
	                <div class="hangye" id="hangye">
			             <label>  <a href="javascript:void(0);">行业</a></label>
			             <input type="hidden" name="conIndustry"/>
	                </div>
	                <div class="diqu" id="diqu">
			            <label><a href="javascript:void(0);">地区</a></label> 
			            <input type="hidden" name="conArea"/>
	                </div>
	                <input id="icoRefresh" class="icoRefresh" type="button" value="" />
	                <!--隐藏域 开始-->
	                <div class="hangye_panel">
	                	<mytag:industry industry="${industry }"></mytag:industry>
	                </div>
	                <div class="diqu_panel">
	                	<mytag:area area="${area }"></mytag:area>
	                </div>
	                <!--隐藏域结束-->
	
	            </div>
	            <div class="Searchcase">
                    <input class="SeachTxt btn_reset" name="conName" type="text" placeholder="请输入搜索内容" />
                    <input class="btnSearch btn_submit" type="button" value="搜索" />

                </div>
		    </div>   
            </form>

            <div class="Allcount">

                <label>共检索出<span class="countred">[${pager.totalRows }]</span>家项目甲方</label>

            </div>

            <div class="Resultlist">
            	
            	<c:forEach items="${pager.data }" var="item">
	                <div class="prolist">
	                    <div class="listimage">
	                        <img width="220" height="120" src="${contextPath }/${item.conLogopath}" />
	                    </div>
	                    <div class="listinfo">
	                        <strong><a href="${contextPath }/consumer/baseInfo.htm?id=${item.conId}">${item.conName }</a></strong><br>
	                        <p>${my:shortText(item.conDesc,100)}</p>
	                        <div class="rightbottom"><strong>注：</strong><label>案例已有<span class="countred">[1860]</span>个，与<span class="countred">[1000]</span>个项目甲方达成合作关系，与<span class="countred">[800]</span>个集成商存在合作</label></div>
	                    </div>
	                </div>
            	</c:forEach>
            	
            </div>
        </div>

        
    </div>
    <c:if test="${ pager.totalPages > 1}">
    <mytag:loadmore params="${my:toJson(params) }" container=".Resultlist" msgname="项目甲方" url="${contextPath }/consumer/loadajax.htm" totalpage="${pager.totalPages }"></mytag:loadmore>
    </c:if>
    <script src="${contextPath }/js/entity.js"></script>

    <%@include file="../common/footer.jsp" %>
    
    <script>
    
    	var qryobj={
    		conIndustry:"${params.conIndustry}",
    		conArea:"${params.conArea}",
    		conName:"${params.conName}"
    	}
    	
    	$(function(){
    		//查询表单提交
    		$(".btn_submit").click(function(){
    			var sHangye = $.trim($(".hangye:first a").text());
    			if(sHangye == '不限' || sHangye == '行业')
    				sHangye = '';
    			$("input[name='conIndustry']").val(sHangye);
    			
    			var sDiqu = $.trim($(".diqu:first a").text());
    			if(sDiqu == '不限' || sDiqu == '地区')
    				sDiqu = '';
    			$("input[name='conArea']").val(sDiqu);
    			$('form').submit();
    		});
    		
    		initParams();
    	});
    	
    	function initParams(){
    		if(qryobj.conIndustry != ''){
    			$(".hangye a").text(qryobj.conIndustry)
    		}
    		if(qryobj.conArea != ''){
    			$(".diqu a").text(qryobj.conArea);
    		}
    		$("input[name='conName']").val(qryobj.conName);
    	}
    	
    	
    	$(window).scroll(function () {

            var a = $(document).scrollTop();
            console.log(a);
            if (a > 300) {
                console.log(a);
                $(".fixSearchMenu").show();
                $(".left_menu").css("margin-top", "-50px");

            } else {
                $(".fixSearchMenu").hide();
                $(".left_menu").css("margin-top", "20px");
            }

        });

        $("#icoSearch").hover(
            function () {

                $("#icoSearch").css("background-image", "none");

                $("#icoSearch").val("查询");
            },

        function () {
            $("#icoSearch").css("background-image", "");

             $("#icoSearch").val("");
            }
            );

        $("#icoRefresh").hover(
		    function () {
		
		        $("#icoRefresh").css("background-image", "none");
		        $("#icoRefresh").val("刷新");
		    },
		
		function () {
		    $("#icoRefresh").css("background-image", "");
		    $("#icoRefresh").val("");
		}
		    );
		        $("#icoRefresh").on("click", function () {
		
		            window.location.href = "cyda_jf.html";
		        });
    </script>
</body>
</html>
